package dbrouter;

import java.rmi.Naming;
import java.rmi.registry.LocateRegistry;

public class DbRouter
{
    public static void main(String[] args) 
    {
        
        try
        {
            LocateRegistry.createRegistry(2345);
            IBaseModelo servDB = new BaseModelo();
            Naming.rebind("rmi://localhost:2345/BaseModelo", servDB);
        }
        catch (Exception e)
        {
            System.out.println("Erro no servidor: " + e.getMessage());
        }
        
    }
}
